package main

import (
	"time"
	"fmt"
)

func main()  {
	timer := time.NewTimer(time.Second *3)
	//重置
	timer.Reset(time.Second)
	<- timer.C
	fmt.Println("时间到")
}